Fixed some minor issues and created the genmodel.
generated model, edit, and editor code