Add BSD 2-clause license and example in README.