main() function and Makefile creation