fix code style, mainly method docstrings