Documented the hexToDec function