Made EncodeDecodeXml Synchronized

And other small changes.
TODO: Test if synchronized works
Comments and update EncodeDecodeXml Fix #16

Add some comments and adds to EncodeDecodeXml to be able to create and
edits xmlfiles with diffrent bodyName. Before could only read xmlfiles
with diffrent bodyName