tracks fixes (empty file on crash, crashing due to errored xml), [US - 336] finally finished

tried improving Dijkstra by drawing path from end to start, not the other way round, in result two paths are displayed (green one is the new one) - I need feedback from testers which is better