modified script to plot TH decay and TZ in one execution and create option to save in specified folders