refactoring for supporting documetn completion again
document code completion working #20