Added and revised docstrings