cleaning some errors if out folder doesnt exists, adding R script to check quality of clusters