move function print_bytearray to util module
rename function printSigned to print_signed