updated first draft for linking to other entities
added fetch function for documents
added functionality for adding documents to other entities
update documentation
update documentation