create_matrix function

creates a document-term matrix to be passed into create_container().