cleanup and optimizing of the Process class, lots of documentation added

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