added while loop in runTimeLapse.sh, now it is possible to set timelapse
in seconds