added functions to calculate superheat and subcooling