modified the dpm code so that it will function
modified the documentation