Formatters and ping

Includes changes requested regarding message formatters and new ping mechanism.