updated alignment routine which now contains the new inline output of alignments as a default