Missing several parentheses in code examples

There are several instances of the examples where a second parentheses is missing in the setDefaultOptions method.
Merge pull request #894 from richmulhern/patch-1

Missing several parentheses in code examples