Rewrite SQA section.

Also added references and several other "small" changes.