parse paragraphs and parameters

use modified version of xml2json to parse paragraphs and parameters
while preserving their order.
code documentation and formatting
work in progress: use new xml2json version

xml2json forked version has been changed to always
preserve order.