Refactor code

Add dataId info to received datas.
Improve logging.
Add capability to discard too often retransmitted packets.