added licence
more fixes