changed to pass-by-ref
finalizing options logic and getting ready for output
added debug option to Makefile + finished -c

added -g for gcc
finished createfooter function and patched up the logic for
exporting and creating new footers.
it works!