added documentation for the matrix