Minor enhancements, also trying out iterative improvement.
Much faster local offset estimation, using correlation, which seems slightly less robust but works as it should in sanity checks
Added function to apply local offsets using COLA.  Results are OK but some of the base cases need work.