Revised heater/cooler for #39

Added optional dynamics to the model. Added more examples.