pretty formatted json
added dirname to config read so you can run the program from any directory