added plotting routine with mean and std computations