added getCSSRule and other small changes