adds main function and some error handling for the alignments