the model attributes and respective accessor functions now use code templates located in templates/code/model to make the function definitions adaptable by the user

refs #1106