Make Config Write Cleaner

Config Write is now simpler and cleaner.