added code for single model generation and fxml