Add LICENSE, update some code, change examples.