meanDeviations function

Function to calculate the mean and deviations from mean