clean #shift code.
On branch master
modified:   lib/train.js