changed params and functionality of get_local_maxima
added get_local_maxima to feature