add default_errordef and remove a couple deprecated oneshot from __init__
Merge pull request #11 from piti118/master

add default_errordef and remove a couple deprecated oneshot