Completed changes for DBG PRM and documented.
Updated val usage to prm