download_results function

Downloads the results of a job