changed peak detection logic to give 'tie' in peak to later one, since the philosophy is to slowly work up in frequency