fixed missing UART init

added more debug code