Updated README
Updated hook code