Added some additional comments
Added batching of messages (efficiency)
Added end of session message support
Added timer to ensure data flows through without too much latency
Reset timer each time a message is generated.
Increase packet size to 1,500 bytes