Fixed various typos and whitespace layout issues

Fixed various typos and whitespace layout issues (no code should have changed by this commit). Assuming that 4 char tabulators are used (read: a tab looks like 4 spaces in the code editor).