Deep models handling

Recursively adding to the required models the deep models
Merge pull request #96 from fgd99/master

Deep models handling