added more debugging stuff and fixed some errors

improved ping and pong