Generalize hands DIO variables, and add a method to reassign them in the derived classes.

Refactoring) variable names more specialized.