added header to explain what the script does
changed preferences variable name