Added matrix documentation