more robust full detection
adjustments to jump windows
adding local max option instead of big jump

local max function still needs writing