Write Makefile, fix minor derps