Fixing up some bugs with code gen and the FormGen comment option.

Also, minor changes to notes.
Merge pull request #430 from spekary/feature-Codegen

Fixes for codegen