add some examples to the class/c contract docs

and fix some commas