Separate magres.atoms into separate files