Added hex print functionality

Added hex print functionality