AM: format comments and docstrings