Better control on the extraction of the disperion curve

Added a paramater to control the strength of the term that penalizes jumps in the penalty function