nametab and object tab function added, vector reversed for classes