fixing weird problem in index.js when more than one action involved, updating test
updating examples