Fixes comments not being faithful.
Adds the first of the random tests.
Fixes some bugs.
Merge branch 'master' into tests
Adds another one of many upcoming tests.
Adds a pair of tests for DIAG='U'.
Adds a hotfix, will be changed in later commits.
Merge branch 'master' into tests