few docstrings added