IndicesManager: clean up code.
DocumentsManager: add getter for documents.