Add API source.
Merge pull request #2 from jamezp/api-src

Added the source API source code