Major changes to the options code. Now it reads in the values from the settings and sets the state of the check boxes.