add makefile and main source file