Add appledoc documentation

This provides documentation for the API.