added mean value calc
added standard deviation code
another way of calculating variance added