added licence to source code