Corrected bugs
Added failsafe against empty sequences in the alignment
Added failsafe against empty sequences in the alignment