Added more debugging print functionality

Prints bad payloads in event the payload could not be parsed. Both
server and payload creator.