Added API doc examples
Merge pull request #1493 from kraman/gen_docs

Added API doc examples