Finished controller code generator.
doc fix.
typo fix.