Added model, generator, unit tests for generator.