Fixed Bracket and Spacing consistency

Please refer to existing format when writing new code