Added a config validator and documented code that was previously undocumented, for the plot_generator scripts, documented them.