Mean value is calculated. Need to calculate associated variance, and save the output, test the file creation, etc.