made parentheses consistent

its a contentious issue, however it's important.
I used the first example of function/block encapsulation by parentheses in this file to
determine the style used in the rest of the file.