Remove trailing whitespace

These changes merely remove trailing whitespace from source code files.  This simply makes the code a little bit tidier and is something I noticed while reading the code recently.  I hope this helps in some way!