 // work our way through the global template
 void fill_smooth() {
   static uint8_t brightness = 0;
-  static uint8_t pal_index = 0; 
+  static uint8_t pal_index = 0;
 
   // Some variables to help us smoothly transition between rates and
   // keep track of where we are on the sinwave
   static uint8_t bpm = map(analogRead(RATE_POT), 0, 1253, 120, 10);
   static uint8_t prev_brightness = 0;
   static uint8_t last_second = 99;
-  uint8_t second = (millis()/1000)%60;
+  uint8_t second = (millis() / 1000) % 60;
 
   // Modulate brigthness at input dependent rate
   prev_brightness = brightness;

void theater_chase_random() {
  // Vector to hold the widths, since they're randomly
  // determined, we need a vector to deal with varying sizes
  static std::vector<uint8_t> packet_widths;  
  static std::vector<CRGB> packet_colors;
  
  // Fill the vector the first time it's run. Use a static variable
  // so we only have to run it once
  static boolean first_run = false;
  if (first_run) {
    uint8_t rnd_width;
    uint8_t num_filled = 0; // Keep track of how many LEDs we've filled
    uint8_t pal_index=0;
    while (num_filled < numLED) {
      // Generate new packet length
      rnd_width = random8(2, 5);

void loop() {
  // Read in global brightness value
  //gBrightness = map(analogRead(VAL_POT), 0, 1253, 0, maxBrightness);

  // Read color from potentiometer input
  gRGB = CHSV(map(analogRead(HUE_POT), 0, 1253, 0, 255), 255, gBrightness);

