Tweaked the prefernces window's layout and contents. Also refactored it's code a bit.