Quick fix for segfault when quitting ROOT, also removing some g++ warnings
Still missing: Correct Epoch Counter, segfault when printing reference channels