few tests; docstrings updated