Hooks

- Throw exception instead of segfaulting for on-add hooks not adhering to the specs. More work needed.