Added some eexception classes.
Modifications on the model.