Clean up source code.

Fixed:
- mixed tabs/spacing
- trailing whitespace
- unneeded semicolons