making the read command a 3 variable command
completed printhex and test functions