updated examples
fix don't document config
Merge pull request #4256 from eileenmcnaughton/api-examples

Updated api examples