working on the document apis
working on the document apis
fixing tests
fixing state post
Merge pull request #218 from creighton/improve

Improve