Added better fitting, and can now read root files.