updated code to weight properly and added flags for nonPU jet algos