created main c file

excuse the ugly while loops; for to come soon