Add license and make code origin more clear