move selection factory into nminus_tools
refactor
broke off window struct from nminus hist
refactor most of the NMinus1Histograms stuff into nminus_tools