added rgbToHex and url functions, improved round