add debug flag
Added function name & line to the debug output
filled up data into bitgroup struct but segfault is comming