add author_email and default_ext config
refactor and use docopt