Finish the model class definition

The top-level Model class has been roughly finished with the imported
functions from the lower-level modules pending implementation.