Fixing residual calculation for adaptive binning
Committing working version before I mess stuff up
Added script to save g2root tree outputs into a histogram root file for easier usage