add support for running commands.

Added some dirty support for running commands as the timers cycle through. 

First attempt at even modifying an applet so I am sure there are better ways, but this works quite well.