added support for sty files with tidy and changed attributes to lowercase