Add hooks
Merge pull request #13 from marsam/hooks

Add hooks