Now printing in the format required

To hex helper fixed, slightly modified