more functions ported
tweaks to RootTools