Stable computation of average and standard deviation.
Merge branch 'master' of github.com:wi77/LS2
Update to use new calculation.