update doc with errordef
Merge pull request #50 from piti118/gh-pages

update doc with errordef