Fixed saving of the new options from the dialog.
Made the settings object to save to a parameter.
Merge remote-tracking branch 'upstream/master'
Fixed erroneous reference of settings field
Merge pull request #11 from willemduncan/master

Fixed saving of the new options from the dialog.