Stats changes

Set defaults for most config options.
Only capture stats if enabled in config file.