Thanks for making this module available.
It seems that the while loop in EnergyBalance is not actually iterative, and will just repeat the same calculations until maxiter, as newTi or lastTi do not feed back into any calculations. I'm not sure what this means for energy balance estimates.