Added the initial download and upload functionality.

Changes might have to be made.