Started refactoring.
UDP listening working.
Modified ListenUDP API.