Code cleaner, and new variables for diagnostic of adduction, correction of errors for failure counter variables