added main.c

main.c includes the core of everything