Added better formatting for hex.

Added better formatting for hex. by "% x"