Added debug flag to project, minor changes in uart_irq