pathfinding commenting and cleaning