Introduced a method to find the word divider in a command

* Some cleanup.
* Added CLS helper comment.
Split sub routine into file