Bugfix/issue 23 too many files in retrieve call limit 5000

Fixes #23