changed enthalpy-total calculation to the one used in the paper, fixed a bug