now we write json files with the right format (also fixed README)