rename thermocouple structure
fix state machine; new process display; separate helper code in new file; refactorings