Fix spacing issues with classes. Fix wrong tag for excluding classes from tex used