Added some helper functions, calcPH now finds pH at a chosen concentraion