Cleaned up the way the configs are merged and validated. Should be more efficient and easier to follow now.