Updated CMakeList
updated main.qml
Updated sources, improved sendMessage algorithm