Fixed the summary output

The summary output is currently very basic but it is at least now functional.