Moved all the model representation into a single class

- this class can be populated from a parameter file
- fixed the "hack" of deleting the tmp directory because of shutil -- now all the work is done UNDER the tmp directory