Fixed up the schemas and added more referneces. Also added code to use the schemas when creating the config and creating the data xml