Used  instead of deprecated function.
Merge pull request #512 from mkcor/doc_fix-deprecationwarning

Used feature.peak_local_max instead of deprecated function