Simplify routes, tweak latex, fix routes priority coding