Added deep model to base and added initial tests on deep model

The tests will be more fully fledged out in next day or so but please take a look and see if it looks ok