remove Matrix2D.transform, and many bug fixes