Finalized CO2 and pH functions, with basic housekeeping on other functions.