edit docstrings and codestyle