updated TAppSettings class and modified related files.
merged.