added simple api interface
Merge pull request #27 from rNavarrete/expose_api

added simple api interface