Software timers code integrated.
minor changes.