Added API
Merge pull request #2 from mattparks/master

Added API