Added RGBtoHex function, GUI loop modifications