lots of refactoring...
no longer using vector & sort for peak matching since no two tracks ever seemed to want the same peak. set up new threshold for peaks. set up gain sacling based on aliveFrames