Merge pull request #13 from ag-csw/master

pulling in recursive-ralph branch
Merge pull request #14 from ag-csw/master

unit tests
case P added, plus case N amended, both for duplicate domain restrictions
changing catalog DTD, adding missing result texts to test cases
adding checks to avoid null pointer exceptions
adding conditional to see if test results or includes directories should be created
fixing the modification of the content of titlings by cloning

close issue #10
fixing the excess directory creation problem
the infinite loops created by circular includes are terminated with includeHistory, not visitedElements
Merge pull request #21 from greenTara/master

Fixing a number of issues