Updated hook example and readme