Put orthogonalization into subroutine.  Updated methods for setting
scale factor for AKVs.