Restructured code using traits, added CSS lexer.