Cleaned up whitespace

No real changes. Just deleted trailing spaces and cleaned up mixed spaces and tabs. 

I'll take a stab at implementing that feature I requested when I have a chance. In the mean time, this should at least help you get your feet wet with pull requests.

Thanks!

Patrick