Fixed a few errors and added the transpose, initTranslation and initScale methods in the matrix class