Refactoring the temperature control

I'll do a seperate pass later on for turbine flow adjustment, it performs well enough for now.