update hook to enable module, and comments cleanup