Fixing trailing commas and a documentation bug

Trailing commas aren't allowed when calling a constructor, as is the code causes a parse error.  Also fixing a variable name to match the example above.
Merge pull request #71 from jklein/develop-2

Fixing trailing commas and a documentation bug