moved the digipot code

moved the digipot code, cleaning up before new big features!