Move the API files from docs to api folder

Fixes #8