Improve the pinger

Use newer 0xFE protocol specification, and do some slight improvement to make the code more readable (IMO).
Merge pull request #9 from roblabla/patch-1

Improve the pinger