fixed tests
updated and fixed docs