Code associated with paper: Mann R. P. et al, Multi-scale inference of interaction rules in animal groups using Bayesian model selection, PLOS Comput. Biol. 2013