Each class loads its own data.

Also added option to write xml without building whole coverage report as
to reduce memory consumption.