Clean up and document datagram API [fixes #64]
Remove debugging output.