saving results and plots, adding statistics calculation for montecarlo simulation in osmose