modular API and API example added