Printing routes to file

Works somewhat but no empty lines between routes.