Add determinant and indentity matrix functionality and fix minor typos