Fixed and add arguments to API.download and File.download