Fixed file output and plotting.

Data files are now saved in folder specified by "dataFolder" in
config.json