Re: color coded wiring
You'll find color codes in UL 508 or NFPA 79.
NFPA 79 is about $80 and 508 is $500, 79 has similar info.
But colors are
Black power
Red control
Green ground
White neutral or X2
Yellow foreign voltage, usually 120V with main power off
blue DC
white/blue DC grounded
However this is assuming your panel is listed and made to a standard. The drawings would show the colors...maybe.