update license and examples from documentation