Revamped code for potentiometer

Added functionality to read a potentiometer for use as an absolute
positioner
Removed deprecated code and comments