More JavaDocs².
Better ping handling.