UDP server debugged and bugfixed