moved hook registration into init

'cause that's where it belongs
Merge pull request #8 from FND/master

moved hooks into init