cleaned up affine gap alignment code, added comment.