winch encoder functional

added some preferences logic.
all code functional up to this point.