Update writign to root file
Add in writing hists to root file