Re #7: Added option to snap spin calibration to right-angle. Handle case when calculated rotation has negative determinant.