created makefile and basic for main function