Cleanup added to AbstractNestedDoc and its children for less extra whitespace
<source> tag implemented