Added javadoc to model + setGenerator.