saves alignments to file