updated readme and example hook