Add test.sh a miniterm script for easy terminal setup, with hex print and echo back. Also do some code cleanup in the driver