Identity matrix as class method for matrix classes

plus a fix of a minor syntax error in Instance class.