added fraction of bins to plot
saved data from optimize cutoff to json file