Modified the default value of some global preferences to keep consistent with v3.1
Added missing license headers for some files