Added code necessary to run example1.py and some more debug log