Use first command line arg as message
Handle datagram trimming

The class now supports generic length datagrams.
The listening was moved to a separate method.