Added debugging flags
Fixed segmentation fault and sigsegv bugs

+ Fixed memory leaks
+ Fixed parallel message sending