Fix inconsistencies with <p> tags in javadocs.

<p> tags should be on the same line as the paragraph they encapsulate, as they are used this way in the rest of the project.