extended listDocuments with extra filters

now you can also pass optional parameters to filter out the results