Create makefile

Tested and bug free