Small tweaks

Now I'm using PRM_Template as a parameter to set/get parameters. I also
switched solely to OP_ERROR to report errors from methods, instead of
using bool/int.