Merge pull request #634 from jialinsun/master

refactor , add doc
Merge branch 'master' of https://github.com/dianping/cat