Add licence and debug changes