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

Added API doc examples
Reloading the domain from primary to make sure pending_ops is loaded