fix paths and take a file as command line argument
clean up the formatting of output to be more machine readable.