Bug fix: AttributeError does not return attr name

I forgot to actually call format() on the string
Fixed __repr__ function and put it back in