Merge pull request #20 from ccding/dev

fix typos
use function fatal(...)