Modify script to output pretty json, ignore txt files in repo