Added the matrix transposed and initIdentity methods and fixed some errors