refactored arduino program. Added support for cycling through leds on all digital outputs