removed $keys private member and added queryAllDocs in the brief