added clonepm()
cleaned up comments, function names and removed obsolete module