Added calcPH, changes to unrefreshed cells

and general comments