Gdb log added, first fixes