finished documenting the matrix demo