fixed Makefile and edited main.c