Change the socket protocol to UDP
Add comments
Use an extra thread to send udp socket message
Reformat the datagrampacket