added conversion back and forth from hex to ascii