fix implementations of document crud commands; document crud test cases