changed extendtimerfunction to look for whether the timer is running, added...
changed extendtimerfunction to look for whether the timer is running, added isRunning() function to timerclass
changed extendtimerfunction to look for whether the timer is running, added isRunning() function to timerclass