Motion correction
Try John Ashburner's realignment chapter in the Human Brain Function book - second edition.
You may get some benefit from the theory pages at the AIR website. AIR is a realignment / coregistration / normalization program written by Roger Woods of UCLA. His pages go into details of the implementation of spatial transforms, some of which are relevant to SPM.
Note that, one problem with movement correction is that the estimation of movement parameters can be biased by large activation: see http://www-sop.inria.fr/epidaure/Collaborations/IRMf/INRIAlign.html, and L. Freire and J.-F. Mangin. Motion correction algorithms may create spurious brain activations in the absence of subject motion. Neuroimage 14(3), p. 709-722, september 2001.
Registration in general
Mark Jenkinson and Steve Smith have an excellent introduction to the problems of optimizing in registration - see the HTML version or pdf version.
Voxel-based morphometry
See also the other chapters on "Computational anatomy" in HBF2.