decided on an output format for the routes JSON
finished working on algorithms. now to debug...