Finished debug.py. Begin to test new features