added main.c

Initial commit of main.c