Multiple id and class selectors are supported now. Applied some refactoring.