Added DEBUG flag.

Debug flag added in virtual machine and in the interface.py.