writes the subset data frames to file
plots of histograms and correlations
subset data gets output