modular API and API example added
Merge pull request #2334 from mazumdarparijat/gd

modular API and API example added