Finish refractor of sort (Need to be tested)

And add a new version of center, make the non-rigid registration more
generic