Added types for HKID and HCID

implement Hex() for both
updated commit to include hash of parent