checked closing all files and histograms. Still a memory leak left somewhere.
made a file goat_main.cc for main function.
started thread based running. At the moment seg fault in second file.
bugfix in GTreeManager in file writing.
added initialisation of nEventsWritten in GoAT constructer.
changed thread management from pthread_t to TThread. Capsule the GConfigFile in main.
Reset Branch Addresses before setting them again in all trees. fixes seg fault in second file by running over a directory.