bugfix: we can now shutdown while overheating
minor adjustments to code; functionally equivalent, but better order
improved temperature debugging