added main.c edited makefiles