Improved layout alignment and margins.
Implemented tcp connection handling in case udp packets are dropped.