Added summary statistics calc and print function