added the alignment quality calculation from the old jalview, and