debugged seg violations and memory leaks
Merge branch 'master' of https://github.com/hmabdall/bbgg