Add license file.
Add API example in README.