Fixes #10 and adds opening bracket in same line as if statement
Fixes #11 and removes blank lines from code