refactor slighly more nicer
add ping endpoint & makefile