Ran the formatter over the code.  Added some extra debug statments to the code to figure out why the test_getWarnings only fails on jenkins