Refactored Concept retrieve, snippet retrieve
Bug fixed in doc and snippet retrieval
merge from branchzhuang
add output writer in concumer