more sophistication in getting training status, and commented debugging code
more training conditions