Implemented #57 and #56

Added a method for setting CLI’s text
Edited closing event to call exit command
Importing fixes