Add autoping.
go fmt and fixes