minor changes to thermo.py