Changed the ghetto hex conversion to use the decToHex function in common functions