add logweighting + other fixes
Merge branch 'master' of github.com:pfs/PFCal
adding logweighting