add LICENSE and minor changes