Standard Makefile setup

I split the cc files from h files and wrote a Makefile to build the stuff.