new functions: add, rgbToHex, hexToRgb, isBright, isDark
changed event delegate

now "this" in events callbacks is a Swordfish instance