made conf and keys less global
keys properly display in ui. A few unneeded lines removed.