Code convention changes.

Corrected braces in *.cpp as well as function parameters in *.h.