add function to decompress gz, tar.gz, zip files, modification to function download_data