chose appropriate file name extension for downloading a subdocument
Merge pull request #13 from medoc92/master

Chose appropriate file name and extension for downloading a subdocument