initial program and thermostat library