Added missing license and removed some debugging code