Documentation and small change
Add test for hook closes #7