Added preference window
Merge remote-tracking branch 'origin/master'