Set arity, specify arity in event handlers.

Closes #91.