refactor yuan api
change code structure. prettify code.
add command info