printfs left for debug removed
udp needs an address copied when receiving message, fixed together with thecrash which occured due to uninitialized field in msghdr