1. refactored to a single .c file
2. fixed memory corruption issues due to mishandling of tcp connection
being closed. did not properly close the udp socket and deleted utb object
prematurely