fixed ellipse projection bug and added auto orthonormalization on basis vectors