remove commented code
simplify logMessage function
simplify CSS engine, abstract predicates
implement CSS parsers