added more unit tests; altered doc_words