workson #25

- major refactoring in generation of result file generation
- created infrastructure for distance measurement