Updated the mass calc script to understand chemical compounds in the form CaCl2. The most tedious part was finding and typing the molecular mass for each element. I will add these as plain text documents for other people to use at some point. Managed to work out the splitting from a question on StackOverflow answered by Andrew Dalke, very pleased as I was stuck at the last hurdle of getting H2O parsed as H H O.