Added Licence and headers