Add standard deviation stat

Also used numpy for mean and std calculation.