Added function puthex8()

Implemented puthex8() function
Added some test code in the echo back routine