add paragraph functionality and optional parameters to sentences and paragraphs