Change license to LGPL

Fixes #16
Add API (auto-generated)