gendocs
Added ping handling