I continued to fill in code for main.c, mainly dealing with the printing.
-Nash Kleppan