Fixed spacing of if statements to improve readability of the code.
Merge pull request #16 from demasu/misc_fixes2

Fixed spacing of if statements to improve readability of the code.