Strip whitespace at EOL

For us OCD freaks out there.

http://www.codinghorror.com/blog/2009/11/whitespace-the-silent-killer.html
Improve error message, and comments about main()