Clarified some matrix code