Added partial code for the download command and api.go