Fixed a bug in temperature history recording.
Removed some whitespace lines.