added explanation of matrix class