created command object and flow of message text to work with QT stuff