updated docs and tests
added sphinx docs