several updates to alignerTemplate where it can now save alignments