Add licence header
Improve the "ping" example