new doc structure
refactor api
fix sphinx warning