added RMS, arithmetic mean, fits (not very good yet)
jet_gen macro: implemented variable binning