fixed getattributes

getattributes now returns a vector with the names of the attributes for
the table