changed getlevel and potlims
changed getlevel
changed potlims
added reading button state
changed potlims again
changed potlims to account for added resistor
added getNearestLevel()
fixed getNearestLevel() bug