Finish test with exported file and corrected bugs
Modification of the CreateModel and CreateModelStructure to fix
bugs detected with tests (issue #9)