Added API class
Added unit test for API
Merge pull request #16 from mustardgrain/api

Api