log4j fix; dropped jgrapht; bfs implementation; some refactoring