adding exception handling, updating docstrings in bulk