comment on hslToRgb
bug fix in numEncode