First attempt to write nexus file