Added thermostat,  added energy calculation, pressure, and temperature