Improve respond api and update docs