added cursor feature (including tests) and updated documentation
added the cursor feature