add top-level makefile
simplify makefiles with VPATH
sleep when not measuring distance
auto power-off not reliable yet
tweaks
auto power-off fixed