improve the name structure of output files, outsource the plotting to an analytic enviroment