Added support to API.
Merge pull request #3 from arpithkp/apiSupport

Added support to API. Looking good.