added logger, finished edge walking algorithm