Rework the udp collector to be the same as the tcp collector, also add in unit testing
Fix publish_counter
Doc updates