added max_temp config option to temperaturecontrol