Extra text representing classes is detected and correctly removed. Adding attributes isn't working yet.