fixed potential in swarm1

other bug fixes
world can now be 1 cell without errors
typo, ab4 instead of euler
made constants doubles to avoid integer division = 0