Don't error if Prefs['plot'] somehow isn't set.
Add ValidatePrefs function
Merge pull request #4 from sander1/master

Small update