fixed makefile and added main