Added a makefile.
Reorganized the whole project into a more formal layout, updated the makefile accordingly.