Corrected final path selection.
Enable program to run outside shell
Finalised shortest path example.
Records.