Fixed bug in Read instance of Id

Also changed how ToXmlSpecs and ReadSpecs work