cleanup
reformat docstrings
cleanup docstrings
whitespace fixes
first version of Plm

needs testing, refactoring