Initial commit of API code
Merge pull request #1 from sprak3000/initial-api-work

Initial commit of API code