Add optional printout of sample mean in histogram
Fix error msg typo