Removed closing PHP tags and trailing whitespace.

Perhaps you already knew this...if not, see:

Some discussions on Stack Overflow - http://stackoverflow.com/questions/3219383/why-do-some-scripts-omit-the-closing-php-tag

WordPress coding standard spec - http://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces