Normalize whitespace

A mix of tabs and spaces were used for indent.

I replaced tabs with all spaces and removed trailing spaces from the end of lines.