added the mode property.
refined the pressure calclation routine.