Added capability to find best dip and blip in each segment; defined an output format; wrote a stub for plotting dip-blip diagrams [ci skip]