function to store tinker xyz files