Further improvements and test coverage.
Merge pull request #6 from Cadair/aiaprep_wcs_rotation_fix

Aiaprep wcs rotation fix