Code quality

 * Fixed if statements to have space before parenthesis
 * Changed `){` to have a space and become `) {`