added tests, updated documentation
updated tests