add the README about how to config a hook
fix 2 bugs