Refactoring colors.js

Added additional commenting, refactored. Updated tests to match
corrected CIE coordinate return values.