Did some work on main.c
replaced main.cpp with main.c