added some error checking

N_LEDS can’t be greater than MAX_N_LEDS, so now there’s a check for
that in the constructor