Added listDocuments to couchdb. Fixed a few mistakes in export.