Fixed small glitches causing bad alignments, it still doesn't like huge gaps which current optimal alignment has at beginning