improved docstrings for stat module.