Fixing the boolean parsing.

Also fixed the code formatting to match the rest of the code style.