new test and docs
added some tests
fixed doc