Cosmetic fixes in docblocks
Big refactoring: rename rule to condition, rules and tasks to rule.