Added GPL license as required by existing code. Added ping example code from pdbuchan.