Added threads
Got the whole thread, message_queue and udp working