Added print_hex subroutine, and tested it