Refactored GridUdpSocket class and changed codec for model