Got the makefile together, cleaned up the code, now onto a hilarious segfault