added ability to send / receive messages

added functionality to the controller to create / send messages