added stopwatch and alarm functions