generate_sum_stats function

Generate summary statistics