cleanup

Changes to pmm and docstrings