Strip trailing whitespace from comments

Fixes #34.