Add processMessage function

+ Add the body to the three kinds of message.
Merge branch 'beta'