Refactoring for command tasks. Replace var declaration by const. Implement async read file tree. Implement doc dir and doc file filters