Clean up example.  Add a couple comments.
Add replay and verification code to example. #1106
Add cursor log documentation.  Minor example code changes for doc
readability. #1106