How does crystallization work in terms of chemistry?

what was the purpose of the hot re-crystallization? How was a thermometer correction established? How does crystallization work in terms of chemistry? How does one determine the purity of a sample?
Think of the introduction as a way to describe the chemical principles underlying the experiment.