Mc bug fixes

Various bug motion correction bug fixes to get things working with large 3D datasets.