Closest nodes by distance bug fixed and debugging messages deleted