add the long2HexString and hexString2Long functions.