Added debug output routines.  On-going external device implementation.