Fixed model_generator.py crashing with wrong number of inputs.
updated doc
minor changes