Some bags fixed, saving data included

Todo: 3d plot, 2 algoes, threads for calculations