Cleanup spacing

Remove trailing whitespace.
Tabs -> spaces.
Fix indentation.