Restructuring Algorithms

Changing to event based control algorithms. Silence watchdog done.