Adding Debug Mode

Adding Debug Mode