Refactor/small changes

Small improvements

* Allow the PM to say what kind of analysis
* Make the PM use a logger
* Add a getGraph method for obtaining results