Add api and architecture docs (design)