Add function to remove trailing whitespace

Also clean up comments and consolidate two-space tab languages
Replace < and > with &lt; and &gt;
Merge pull request #1 from ajpierce/dev

Whitespace removal function and multiple two-space tab exceptions