slight tweak to peak/valley, added cubic spline interp, added a run scri...

...pt to combine both steps