some modifications

some updates : 

* `onError` added
* config as object or as string
* github.com/nodeca/js-yaml
* travis test should work
* etc.