add code to download a torrent file and pass it to the torrent client