made spfind more robust. Uses a smoothed derivative and checks for turnover point.