Dev: userprefs: clean up whitespace
Low: Add missing import vars statements

Make sure to import the vars module where referenced.