Added support for xml configuration.
Added test for preloading values before check.
Add tests for optimization checks.