Added getNeighbors and error handdling stuff