added argument to function play()

allow passing a new interval value (passing 0 resets to the initially
set interval)