Minor line break fix.
Various minor cli changes: reorganized some methods, displayed messages for cancelation and command successful, validated arguments number, display command usage when incorrect.
Implemented set_text_editor command.