Added comments and small fixes to the test programs.