Further work on writing ase files