major refactoring, result export format now in accordance to schema (almost) + initial support for detailed results (not tested yet)