Updated MainActivity.java

Updated with Sent: and Received: tags, and functionality to send and receive messages.