[SMA-2] XML report

Improve unit testing on code that produces XML report
Update documentation
Merge branch 'SMA-2'