rewrote and added comments to palette.c
changed palettes to use RGB directive now that it's tested working