fixed color bars from being overly random.
Fixed magic numbers with some define statements