Clean up API; document changes; bump version.