Initial main.c

Basic main.c. Not done with options checking.