added complete thermostat functionality; added to message_passing library for all thermostat functions