Commenting on each paragraph of node body
$contentis defined in node.module in the function template_preprocess_node().
You can add elements to the nodes content using hook_node_view()(D7) or hook_nodeapi() (D6).

See the accepted answer of this question for more details.