some memory fixes
particle tracing wrappers revised
Merge remote-tracking branch 'mach/coupling' into coupling
fixed some memory leaks