fixed bug in FilterDistance, cleaned up SpuriousPeaks