add  opts
update test & readme & defaultValue
fix typo
Merge pull request #2 from MangroveTech/master

Adds  `defaultValue` in opts