added root file output, only problem is the damn hit pins