Ultratron: How Enemies Spawn works?

Hi, I think this is a specific question to @princec, but I would like to know how the Enemy Spawning works in Ultratron?

More when groups are spawned in something that looks like a grid, how is that achieved code wise?

Thanks!