Add some code to retrieve document version information.
Update README with a get_versions example.