add LICENSE and fixed the method of point generate