removed trailing whitespaces

Removed all whitespaces in source code, because some editors trim them when saving files. This causes many file diffs when only one line was changed.