added print_hex and print_binary for easier debugging