updated documentation
fixed tests