Made additional changes to documents to allow for document deletion (hopefully)