add doc

add the document of API and other important classes