added comms thread that listens for messages and tied it into the main app