main.c file

moving to main.c for project, leave test.c for testing