Added basic API.
Merge pull request #4 from Ichus/add_api

Added basic API.