Added graphic for singleDialDemo.py and also refactored code.