re-worked the function to generate column headings. Had program also
save down a small section of output and finally added comments to ease
understanding of program.
added segment of output to the git and fixed syntax errors in program.
re-did text output