Implement ping calculation and basic validation of network messages
Add use strict pragmas and pass type into update functions, also cleanup some of the messaging logic