improved main.c formatting
removed some whitespace
improved formatting of implementation
Merge pull request #1 from toddbranch/master

Improved formatting of files.