added API
Merge pull request #7 from RaviShankarArya/types

added API