Modifying the comments and removing unnecessary code within the Matrix model.