Minor style fixes.
Added a preferences panel. Still needs UI work.