This pull request includes refactoring and commenting the criteria completion checker for better readability and maintainability.