added endpoints for retrieving documents
Added caching of metadata alongside documents, cloned return objects