refine document and add some source code

refine document and add some source code