Download function

Added a DownloadFile function
This function runs async