Syntax Fixes

Adds proper `__weak` variable syntax.
Adds braces on single-line `if`s.