Read pot and set system brightness + fix lots of bugs