add some methods for interval, add helper test
add interval, loop, autoPlay functions
Merge branch 'feature/add-interval'