Changed so that all parameters now read from a single JSON file, but write to a boring old text file (I don't want to have to include a json parser in this thing)