Preferences dialog

The preferences dialog allows you to change the behavior of the program in certain situaitons.