Commented code better. Added an action listener for the send button.