corrections to docstrings and indentations