Added the start of trying to send messages as well as trying to receive them.
Haven't tested the code yet, but will have eclipse up and running soon to test it.