Implemented some of the TODOs and sending/receiving handling. Also, put
in code for stopping both threads when the user types "exit."