Connecting the debug port from the uart to external debug as a start. Minor cleanup of file.