energy in/out implemented for Berendsen thermostat.