Add API usage for download; Fix api.go to include code