refactor process managment from commander class

Refactored process managment from commander class in its
own class.