Renamed downloadfile to download, added download_url function