Hook usage & init functions

Pull request for the issue described in #11.