Add two functions to compute and format mean and std