updated the scaladoc for Matrix