optimization of the ProcessDecorator class, documentation added

Signed-off-by: Christian Lüthold <biocodr@gmail.com>