update license and add log example