Read xyz


Based on dreamer-dead's pull request.
Re-use the read structure to pull in XYZ key data.