added delete folders function and replaced export_plots with resave_plots