Fixed bugs with wrong indices and wrong plots
Fixed Segmentation viol. error (hopefully??)
Now also saves .root files