Rearranged the repo, and added the API code.