Downloading code in a file works now. Fixes #11
Merge pull request #25 from batasrki/master

Downloading function works