Code formatting
Added hex2rgb function