added name of raster data set to warning.
now also finds nodes that are on the edges of the search space