Downloading function works

This is implementation for the Download feature, referencing #11