More work on CodeDom and CodeGeneration.
Fixed some bugs.
Merge from orign
Code Reformat. Tabs to spaces. Etc.