added licence and copyright.