removing unused variables in SeaarchRoot()

plus some reformatting