- fix critical distance count
- added exported code, test results and output pdf via inkscape