Improve refactored doc, remove duplications, add task state doc