Added support for model inheritance.

* Resolves #13.