complete findpeaks and extract features