Cleanup whitespace

This just removes all trailing whitespace and normalizes indentation to 2-space indent.

Line length, argument calling, other forms of formatting aren't modified.