Improve ctdbp transforms

merged Luke's corrections to logging with %f
merged Luke's different functions for L2 calculations
added statements to compare Luke's new results with previous gibbs.seawater results