Download function finished 

Everything should work, but the function does NOT handle cases that User didnt provided usrname and password while downloading a PRIVATE scenario. The zip file will be have 0 byte in size and output directory will have no file.