seperating hooks into another file, improved hook code
readme