finishing up assignment. integrates brians code for printing in tabular format, and my code for calcing/printing summaries stats
merging