Added (not working) getAllDocuments method