Makefile

Code has been reorganized and can be compiled into a standalone executable.