changed newMean name and clarified a var in StdDev