update code generation

1. Use T4 template to generate files
2. Fix a bug: the modules generated by Coevery.exe are not added to the solution file automatically.