Added separate summary and print_summary functions.
Added and fixed tests for summary.
Merge pull request #103 from agartland/master

Added separate summary and print_summary functions.