* Added some notes on what ds to use for the documents.
* Added a separate list of ids to associate ID to doc. Looks up all
documents by id to retrieve an index via linear search.
* Fixed function name.
* Removed id recycling, replaced document vector with hashmap.
* Uses the same logic for PrevDocument in closing