Remove unnecessary newlines
Remove unnecessary parentheses
Fix documentation typo
Merge pull request #2763 from fredj/cleanup

Miscellaneous coding style and typo fixes