added function to calculate mean and error for the vector of the direct measurements
included mean_and_error_fmt which formats two values into string (10.8±1.3)