Started working on final output. I still have plenty of gaps to fill but
I need to start looking at how the result is being formatted so I can
clarify that the code is ending up in the correct places