getDocuments() implemented