Reformat docstrings to improve the consistency and remove unused variables