Misc. typos

Missing semi-colon and brackets.
Shifted else statement for readability