wrote a swarm init function taht successfully spawns nodes based on config