File Extension

Hi I have added a bit of code to save the downloaded source files with the appropriate extension. Please to pull if you find it ok.