Improve the pinger

Use newer 0xFE protocol specification, and do some slight improvement to make the code more readable (IMO).