code formatting

remove trailing whitespace in the code and educate developers how to never commit whitespace errors in the future, e.g. http://www.emacswiki.org/emacs/DeletingWhitespace#toc3