Implemented heat processing code.
Cleaned up a few outstanding eyesores.