Distributed and Decentralized Control and Task Allocation for Flexible Swarms | Synapse