Updated dynamic clocking

Added a watchdog and minimum clock speed to prevent lockups