Added public interfaces for rules, media queries and other classes; fixed selector parsing