Added some metadata to modules and assets.
Some refactoring in xml module in order to reduce repeated code.