Rewrited addMessage function

Rewrited add message function, changed IDL, changed client