fixed transformation matricies and corrected D value. Also implemented R_QUAD render mode though depth desting is yet to be done