added retrieveFile option
Merge pull request #24 from ddude/master

added retrieveFile option