optimized hex printing routine, changed repeated putchars to be included in a single printf to keep lines together when multithreaded printing is occuring.