Fix bug in local maxima calculation
Change threshold to 0.01