added loopBetween
Merge pull request #3 from akonsu/master

added loopBetween