Fixed bug in next() for iterator index position.
On branch master
Changes to be committed:
modified:   lib/train.js
modified:   package.json