fixes for filenames in xml documents
adding tests
Merge pull request #179 from simboss/master-namefixes

Ability to create meaningful names for capabilities files