Added hooks
Hooks seem to work
added hook tests
Bump to 0.5