added doc comments to ItemCursor
added doc comments to deleteOldestItem()
added doc comments to private methods
added Rob's proto changes.
Basically the same code with an if statement in Mock file