refactored document matrix functions, deleted matrix model and created document_term_matrix model for that