Add braces to conditionals to fix some errors.
Merge pull request #38 from ernestoalejo/braces-fix

Add braces to conditionals to fix some errors.