Fixed braces and intendation errors