Clean up and format main.c.
Added warning message when user has too many inputs.
Add appropriate warning messages to fork and exec calls.