Fixed error in connected components file and added grid generators.