bug fixes, added swarm example, added Vec methods