added Orthogonal Basis, and other small changes