removed findPeaks()
general cleanup.. adding comments and removing crap
added switch for turning plotting on and off: