Added documentation to cursor example.