fixes and documentation for Matrix2D