Adds send message functionality, fixes #7