added sending messages. closes #3