adds matrix; starts filling the docs