Now calculating btags once per event to avoid inconsistencies, also added a flag to run only SF/DF, removed some unused functions