Whitespace Fixes

This pull request fixes trailing whitespace. We should also consider adopting some form of programming style, since the mixing of tabs and spaces is starting to get annoying (since the style has to be the same throughout the same document).