Fixed spelling and identation errors

`{` after `if`, `else` etc. go on the same line, not the line after.