* refactor: adjust types * docs: add comments * refactor: reorganize api directory structure * docs: refine element docs