removed brackets from example
close #284 the obscure error was becasue the p/a = k: int @ ... by default was made an instance variable. Now val is the default CML type making it a value. res, and (maybe vres) makes instanve variables. A type check has also been added for these arguments such that they are checked.
missing java doc tags added - description
fixed #288 added check to reject res/vres in process definitions