Hey don't mind me!!
I was just looking through my code and realise that I didn't reset 'xBool' to false so it couldn't print all the names. It now happily finds my lines and polylines etc etc.
I also realised that i needed to delete the SelectionSet in your code before rsetting it so it works happily as well.
Thank again