adding chaining support
added examples to readme
updated package.json