Extended grammar to include multiple paragraphs in certain situations, and also added code to deal with notices with multiple reg parts