Fixing issues pointed out by Eclipse code analysis
Fixing formatting issues
Allow memory leaks. Some bug (that I swear was fixed) is popping up when
trying to clear out all the flits.