added some comments to code

Other misc. fixes to csv and generators sections.