added method to trim multi lines
first methods on modelGenerator to generate ModelFiles