Update main.c

Updated the source code to better comply with style guidelines I've set in the README file.