Added braces to branching constructs and loops