Added licence to source code