download_file fn splitted and cleaned
Comments added