Add center test, refractor nonrigid reg

Need to do: test non-rigid registration macro