debug mode

- new debug mode now implemented in gb; gb_g_debug and GB_LDEBUG
- logfile changed
- cube.cpp modified