add output to root ntuples
clean up some global crap, set better detector area