changed XMLWriter to write a version parameter of the Doc. XMLReader will read it back correctly
changed XMLWriter to write a version parameter of the Doc. XMLReader will read it back correctly
corrections for serialization of the document version
merged with old branch
removed unused comments
Merge pull request #30 from asobolev/master

solves issue #11