Title: A theory of activity in nerve cell aggregates with applications to motor and respiratory control