Cleanup process name parsing
There was some dead code, some duplicate code and some code hard to understand. I have added a few comments in relevant places to explain what is going one. Also I have adopted code to be more like that of Boxes.
There was some dead code, some duplicate code and some code hard to understand. I have added a few comments in relevant places to explain what is going one. Also I have adopted code to be more like that of Boxes.