added setDelay() fix #3
setDelay() accept string castable to int