Move the swarm settings to it's on class
Moved functions from util to swarm class