Issue290 tabs

Merge the revised slab model to the master branch.