   "Config"
 ]
 logSheetName = "Log"
+
+configDefinitions = [
+  name:'verbose'
+  desc:'log to Log sheet'
+  def:true
+,
+  name:'trace'
+  desc:'detailed execution trace to Log sheet'
+  def:true
+,
+  name:'autoAddNewLines'
+  desc:'Turn off automatic adding of new lines to the first sheet'
+  def:true
+  ]
+
 if SpreadsheetApp?
   spreadsheet = SpreadsheetApp.getActive()
   logSheet = spreadsheet.getSheetByName logSheetName
   properties = PropertiesService.getDocumentProperties()
   config = {}
-  verbose = properties.getProperty "config.verbose"
-  trace = properties.getProperty "config.trace"
+  for item in configDefinitions
+    name = item.name
+    v = properties.getProperty "config.#{name}"
+    if not v?
+      v = item['def']
+      properties.setProperty "config.#{name}", v
+      v = properties.getProperty "config.#{name}"
+    config[name] = 'true' is properties.getProperty "config.#{name}"
+  verbose = config['verbose']
+  trace = config['trace']
+
+
   # todo: add to config
   # todo: create config sidebar, eliminate config sheet
   autoAddNewLines = true

  flushLog()
  return

initialize = (e) ->
  dump "initialize."
  readConfig()

  menu.addItem 'Truncate Log', "#{namespace}.truncateLog"
  .addToUi()
  menu.addItem 'Template to New Year', "#{namespace}.copyTemplate"
  .addToUi()
  menu.addItem 'Sidebar', "#{namespace}.toggleSidebar"
  .addToUi()


