added Licence and headers