word definition changed and some fixes
paragraph selectors added and regex selectors generalized