add printhex(),simplified print