Create main.c

Added License and main() function.