Swarm

Swarm script updated from old version. Still not fully working.