Added HEXToRGB and lightOrDark methods