Whitespace Fixes

I've trimmed all trailing whitespace, and changed spaces to tabs (where relevant). I've also ensured all files end in a single blank line.