Fixes import formatting and docstrings.