Add makefile, globals and main