Aiaprep completed

Proper (hopefully) testing for the aiaprep() function that's been in development for quite some time, and for the associated affine transform.